a = [1,2,3,4,5,6,7,8]
b = []
for i in a:
    if i % 2 == 0:
        b.append(i)
    else:
        print(i)
print(b)
